home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSNNNNEEEETTTTDDDD....OOOOPPPPTTTTIIIIOOOONNNNSSSS((((4444)))) SSSSNNNNEEEETTTTDDDD....OOOOPPPPTTTTIIIIOOOONNNNSSSS((((4444))))
-
-
-
- NNNNAAAAMMMMEEEE
- snetd.options - network configuration file
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _s_n_e_t_d._o_p_t_i_o_n_s file describes the configuration of the _S_T_R_E_A_M_S network
- constructed by _s_n_e_t_d(1M).
-
- The file is in two sections, separated by a line consisting of the
- character sequence '%%'. Blank lines may be used freely throughout the
- file, and a _t_o_k_e_n (see below) beginning with an unquoted '####' (hash)
- denotes a comment which lasts till the end of the line. In addition, a
- backslash (\\\\) immediately preceding the end of a line results in the
- newline being treated as whitespace (except at the end of comment lines).
-
- _T_o_k_e_n_s consist either of
-
- a) a single occurrence of the special characters { '=', '{', ',', '}' }
-
- (NNNNooootttteeee:::: '=' is _n_o_t a special character within the brace-enclosed argument
- list of a control message; ',' is _o_n_l_y a special character in this
- position.)
-
- b) strings of arbitrary characters enclosed in single or double quotes
- (''' or '"'), but not containing a newline - each quoting character
- quotes the other, for example, "foo 'bar'" or '"foo" bar'
-
- (Newlines occurring within quoted strings will silently terminate the
- string.)
-
- c) sequences of non-whitespace characters not including any of the
- special characters or quotes
-
- All strings are case-sensitive, and are silently truncated to 200
- characters.
-
- The mmmmoooodddduuuulllleeeessss section describes the individual modules and drivers from
- which the _S_T_R_E_A_M_S network configuration will be built.
-
- tcp dc /dev/tcp
- arp m arp
- x25 dc /dev/x25
- lapb0 dc /dev/lapb0
-
- Each line (such as the examples above) consists of three tokens
- (separated by whitespace) as follows.
-
- The mmmmoooodddduuuulllleeee iiiiddddeeeennnnttttiiiiffffiiiieeeerrrr is the name by which the module or driver will be
- known in the streams section (see below).
-
- The mmmmoooodddduuuulllleeee ttttyyyyppppeeee is a sequence of character flags describing the module or
- driver. The flag 'dddd' describes a _S_T_R_E_A_M_S _d_r_i_v_e_r , whereas 'mmmm' describes
- a _m_o_d_u_l_e. The 'cccc' flag specifies a driver to be _c_l_o_n_e_a_b_l_e. (See the
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSNNNNEEEETTTTDDDD....OOOOPPPPTTTTIIIIOOOONNNNSSSS((((4444)))) SSSSNNNNEEEETTTTDDDD....OOOOPPPPTTTTIIIIOOOONNNNSSSS((((4444))))
-
-
-
- _S_T_R_E_A_M_S _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e for a detailed description of modules and
- drivers.)
-
- The mmmmoooodddduuuulllleeee nnnnaaaammmmeeee is the _c_h_a_r_a_c_t_e_r _d_e_v_i_c_e _n_a_m_e for a driver, or the
- _p_u_s_h_a_b_l_e _m_o_d_u_l_e _n_a_m_e for a module.
-
- The ssssttttrrrreeeeaaaammmmssss section describes the architecture of the network in terms of
- how the previously defined modules and drivers are to be combined (by
- means of the appropriate PUSHes and LINKs) into streams. Multiplexing
- and cloning are handled automatically by the _s_n_e_t_d(1M) utility.
-
- ip arp IP_NET=89.0.0.3
- x25 lapb0 SHELL="x25tune -P -s A def.dte.x25" \
- X25_SET_SNID={A, LC_LAPBDTE, , }
-
- Lines in this section (such as the above examples) are of the following
- form.
-
- The first two tokens on a line are nnnnaaaammmmeeeessss (_m_o_d_u_l_e _i_d_e_n_t_i_f_i_e_r_s as defined
- in the previous section) of drivers or modules which are to form the
- uuuuppppssssttttrrrreeeeaaaammmm and ddddoooowwwwnnnnssssttttrrrreeeeaaaammmm components respectively of a _S_T_R_E_A_M_S link.
-
- Each link performed between token 1 and token 2 generates a _m_u_x__i_d
- (multiplexing identifier) which is associated with that link. It is
- possible to override the generated link by replacing token 2 with an
- explicit mux_id, for example:
-
- lapb0 1 LL_SET_SNID=A \
- SHELL="lltune -P -p lapb -s B -d /dev/lapb0 def.lapb"
-
- This sets the _m_u_x__i_d associated with the link to 1111 ....
-
- These names may be _q_u_a_l_i_f_i_e_d by a suffix consisting of a colon (::::) and a
- number (for example _a_r_p:_1) to signify a particular _i_n_s_t_a_n_t_i_a_t_i_o_n of a
- module. (An uninstantiated _n_a_m_e is an abbreviation for _n_a_m_e:0.) Each
- instantiation of a module can be thought of as a separate _b_l_o_c_k in a
- _S_T_R_E_A_M_S Architecture diagram. Separate instantiations would be
- appropriate for, say, a module pushed above more than one driver, but not
- for a cloneable multiplexed driver.
-
- Instantiations are used in the 'streams' section only, to instantiate
- modules defined in the 'modules' section. The following networking
- example would run IP over two distinct networks:
-
- ip dc /dev/ip
- arp m arp
- ethr0 dc /dev/ethr0
- ethr1 dc /dev/ethr1
-
- %%
-
- ip arp:0 IP_NET=89.0.0.1
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- SSSSNNNNEEEETTTTDDDD....OOOOPPPPTTTTIIIIOOOONNNNSSSS((((4444)))) SSSSNNNNEEEETTTTDDDD....OOOOPPPPTTTTIIIIOOOONNNNSSSS((((4444))))
-
-
-
- arp:0 ethr0 ARP_TYPE
-
- ip arp:1 IP_NET=89.0.0.2
- arp:1 ethr1 ARP_TYPE
-
- The remainder of each line consists of a (possibly null) sequence of
- _c_o_n_t_r_o_l _a_c_t_i_o_n_s to be performed on completion of the link in the order
- specified.
-
- Each control action is of the form _f_u_n_c_t_i_o_n = _a_r_g_u_m_e_n_t-_l_i_s_t, where the
- _a_r_g_u_m_e_n_t-_l_i_s_t is either a single string argument or a comma-separated
- list enclosed in braces ({{{{ and }}}}). Control actions requiring no
- arguments may consist simply of the _f_u_n_c_t_i_o_n component. Arguments
- containing whitespace or any of the special characters listed above must
- be quoted.
-
- A special dummy link exists, where no link is formed, but the control
- action is executed. This occurs when token 2 is a hyphen (((( ''''----'''' )))) ....
-
- For example:
-
- x25 - SHELL="pvcmap -P"
-
- which is simply a shell call to execute ppppvvvvccccmmmmaaaapppp ....
-
- FFFFIIIILLLLEEEESSSS
- /_e_t_c/_c_o_n_f_i_g/_s_n_e_t_d._o_p_t_i_o_n_s
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- snetd(1M), hosts(4).
- _T_h_e _S_T_R_E_A_M_S _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-